package com.hyzx.qbasic.admin.model.vo.req.admin;

import com.hyzx.qbasic.admin.model.vo.req.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * Created by 黄江华 on 2018/7/30
 */

@ApiModel
public class AddCmsContentReq extends BaseRequest {

    @ApiModelProperty("内容ID")
    @NotEmpty(message = "内容ID不能为空")
    private String contentId;

    @ApiModelProperty("发布人ID")
    private Integer userId;

    @ApiModelProperty("发布人")
    private String userName;

    @ApiModelProperty("栏目ID")
    @NotEmpty(message = "栏目ID不能为空")
    private List<Integer> channelIdList;

    @ApiModelProperty("标题")
    @NotEmpty(message = "标题不能为空")
    @Length(max = 150, message = "标题不能超过150个字符")
    private String title;

    @ApiModelProperty("标题图片")
    private String titleImg;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("来源")
    private String origin;

    @ApiModelProperty("来源地址")
    private String originUrl;

    @ApiModelProperty("摘要")
    private String description;

    @ApiModelProperty("置顶级别")
    @Range(min = 0, max = 99, message = "置顶级别>=0&&<=99")
    private Byte topLevel;

    @ApiModelProperty("发布日期")
    @NotNull(message = "发布日期不能为空")
    private Date releaseDate;

    @ApiModelProperty("内容")
    private String content;

    public String getContentId() {
        return contentId;
    }

    public void setContentId(String contentId) {
        this.contentId = contentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public List<Integer> getChannelIdList() {
        return channelIdList;
    }

    public void setChannelIdList(List<Integer> channelIdList) {
        this.channelIdList = channelIdList;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitleImg() {
        return titleImg;
    }

    public void setTitleImg(String titleImg) {
        this.titleImg = titleImg;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getOriginUrl() {
        return originUrl;
    }

    public void setOriginUrl(String originUrl) {
        this.originUrl = originUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Byte getTopLevel() {
        return topLevel;
    }

    public void setTopLevel(Byte topLevel) {
        this.topLevel = topLevel;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(Date releaseDate) {
        this.releaseDate = releaseDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
